#include "Event/GUIGlobalEventset.h"

namespace YGUI
{
    template<>
    GlobalEventset* Singleton<GlobalEventset>::m_singleton = 0;

    GlobalEventset::GlobalEventset(void) : EventSet()
    {
        setMountedState(true);
    }

    GlobalEventset::~GlobalEventset()
    {
    }

    GlobalEventset& GlobalEventset::getSingleton(void)
    {
        static GlobalEventset instance;
        return (*m_singleton);
    }

    GlobalEventset* GlobalEventset::getSingletonPtr(void)
    {
        if(!m_singleton) getSingleton();
        return m_singleton;
    }
}